package ai.rpc.provider.service;

import ai.rpc.common.model.User;
import ai.rpc.common.service.UserService;

import java.util.Random;

/**
 * @Author: mengyu
 * @Date: 2024/7/14
 */
public class UserServiceImpl implements UserService {
    @Override
    public User getUserById(Long id) {
        User user = new User();
        user.setId(id);
        Random random = new Random();
        user.setName("user"+random.nextInt(10));
        System.out.println(user.getName());
        return user;
    }

    @Override
    public int getNumber() {
        return 2;
    }
}
